// 视图组件
const view = {
  tabs: () => import('@/layouts/tabs'),
  blank: () => import('@/layouts/BlankView'),
  page: () => import('@/layouts/PageView'),
};

// 路由组件注册
const routerMap = {
  login: {
    authority: '*',
    path: '/login',
    component: () => import('@/pages/login'),
  },
  root: {
    path: '/',
    name: '首页',
    redirect: '/login',
    component: view.tabs,
  },
  dashboard: {
    name: 'Dashboard',
    component: view.blank,
  },
  form: {
    name: '表单页',
    icon: 'form',
    component: view.page,
  },
  list: {
    name: '列表页',
    icon: 'table',
    component: view.page,
  },
};
export default routerMap;
